#include "Tank.h"

Tank::Tank(const char* szName):CSprite(szName)
{
    //ctor
}

Tank::~Tank()
{
    //dtor
}

//坦克生命值
int Tank::getHP() {return HP;}
void Tank::setHP(int _HP)    { HP = _HP; }

//坦克的初始x坐标
int Tank::getInitX()    { return initX; }
void Tank::setInitX(int _initX)   { initX = _initX; }

//坦克初始Y坐标
int Tank::getInitY()    { return initY; }
void Tank::setInitY(int _initY)    { initY = _initY; }

//坦克的X轴移动速度
float Tank::getSpeedX() { return speedX; }
void Tank::setSpeedX(float _speedX) { speedX = _speedX; }

//坦克的Y轴移动速度
float Tank::getSpeedY() { return speedY; }
void Tank::setSpeedY(float _speedY) { speedY = _speedY; }

//坦克方向
int Tank::getDirection() {return direction; }
void Tank::setDirection(int _direction)   { direction = _direction; }

//坦克射击的冷却时间
float Tank::getCountShellTime()   {return countShellTime;}
void Tank::setCountShellTime(float _countShellTime)   {countShellTime = _countShellTime;}

//坦克射击频率
float Tank::getFiringFreQuency()  {return firingFreQuency;}
void Tank::setFiringFreQuency(float _firingFreQuency) {firingFreQuency = _firingFreQuency;}

//坦克身上的子弹
TankShell* Tank::getTs()  {return ts;}
void Tank::setTs(TankShell* _ts) { ts = _ts;}

